var target = 'http://localhost:9002';

//guide为demo配置，项目上线前可以删掉
module.exports = {
    rules: [
    {
        from: /\/container$/,
        to: '/views/guide/container.html'
    },
    {
        from: /\/components$/,
        to: '/views/guide/components.html'
    }, {
        from: /\/guide$/,
        to: '/views/guide/index.html'
    },{
        from: /\/login$/,
        to: '/views/home/login.html'
    }, {
        from: /\/index$/,
        to: '/views/home/index.html'
    }

//  {
//          from: /\/fill_info$/,
//          to: '/views/yaoyiyao/fill_info.html'
//     },
//     {
//          from: /\/index$/,
//          to: '/views/yaoyiyao/index.html'
//     },
//  {
//          from: /\/yaoyiyao$/,
//          to: '/views/yaoyiyao/yaoyiyao.html'
//     },
//     {
//          from: /\/award$/,
//          to: '/views/yaoyiyao/award.html'
//     },
//     {
//          from: /\/act_descible$/,
//          to: '/views/yaoyiyao/act_descible.html'
//     },
//     {
//          from: /\/submit_success$/,
//          to: '/views/yaoyiyao/submit_success.html'
//     },
//     {
//          from: /\/error$/,
//          to: '/views/yaoyiyao/error.html'
//     },
//      {
//          from: /\/test$/,
//          to: '/views/test/index.html'
//      }
    ],
    proxys: {             //代理
        '/api': {
            target: target,
            changeOrigin: true
        },
        '/pass': {
            target: target,
            changeOrigin: true
        }
    }
}
